package com.roden.study.java.util;

import java.util.Random;

/**
 * @Author luod
 * @create 2022/8/1 11:11
 */
public class RandomTest {
    public static void main(String[] args) {
        System.out.println(randomString(-229985452) + " " + randomString(-147909649));
    }

    public static String randomString(int seed) {
        Random ran = new Random(seed);
        StringBuilder sb = new StringBuilder();
        while (true) {
            int k = ran.nextInt(27);            
            if (k == 0) {
                break;
            }
            sb.append((char) ('`' + k));
        }
        return sb.toString();
    }

}
